<?php

declare(strict_types=1);

namespace app\wechat\model;

use sheep\model\Common;
use think\model\concern\SoftDelete;

class Material extends Common
{
    use SoftDelete;
    protected $name = 'wechat_material';
    protected $deleteTime = 'delete_time';

    protected $type = [
        'content' => 'json',
        'delete_time' => 'timestamp'
    ];
    protected $append = [
        'type_text'
    ];

    /**
     * 类型列表
     *
     * @return array
     */
    public function typeList()
    {
        return ['text' => '文字', 'link' => '链接'];
    }

}
